package com.qf.ssm.mapper;

import com.qf.ssm.po.Company;
import com.qf.ssm.qo.CompanyFindPasswordQO;
import com.qf.ssm.qo.CompanyQO;
import com.qf.ssm.qo.CompanyRegisterQO;
import org.apache.ibatis.annotations.Param;

public interface CompanyMapper {

    Company selectByCompanyId(@Param("companyId")int companyId);
    Company selectByCompanyAccount(@Param("companyAccount")String companyAccount);
    Integer insert(@Param("companyRegisterQO") CompanyRegisterQO companyRegisterQO );
    Integer updatePassword(@Param("companyId")int companyId,@Param("oldPassword")String oldPassword,@Param("newPassword") String newPassword);
    Integer updatePasswordByEmail(@Param("companyFindPasswordQO")CompanyFindPasswordQO companyFindPasswordQO);
    Integer updateCompanyInfo(@Param("companyId")int companyId,@Param("companyQO")CompanyQO companyQO);
}
